Closed (fixed)
Project:
Video Upload
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
14 Jan 2009 at 03:25 UTC
Updated:
11 Mar 2009 at 00:10 UTC
Jump to comment: Most recent file
After installing this module and testing it out by uploading a test video, Drupal's cron broke. It stopped running automatically and when I tried to run it manually, it just output a white page. No errors, no nothing. The video never did upload to Youtube or was processed. I uninstalled the module and erased all my test data and the cron started working again.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | 358534.patch | 2.17 KB | jhedstrom |
| #13 | 358534.patch | 1.65 KB | jhedstrom |
Comments
Comment #1
jhedstromAre there any watchdog messages?
Comment #2
mediabounds commentedThe only message in watchdog is:
Cron run exceeded the time limit and was aborted.
Comment #3
jhedstromHmm. Do you get any odd messages at admin -> reports -> status?
Comment #4
mediabounds commentedNo, everything checks out just fine!
Comment #5
jhedstromCould you provide an export of the content type/field settings? (The Content Copy module bundled with CCK enables you to do this).
Comment #6
mediabounds commentedHere are my settings:
$content[type] = array (
'name' => 'Video',
'type' => 'video',
'description' => 'Upload video!',
'title_label' => 'Title',
'body_label' => 'Description',
'min_word_count' => '0',
'help' => '',
'node_options' =>
array (
'status' => true,
'promote' => false,
'sticky' => false,
'revision' => false,
),
'upload' => '1',
'teaser_field' => 0,
'old_type' => 'video',
'orig_type' => '',
'module' => 'node',
'custom' => '1',
'modified' => '1',
'locked' => '0',
'comment' => '0',
'comment_default_mode' => '4',
'comment_default_order' => '1',
'comment_default_per_page' => '50',
'comment_controls' => '3',
'comment_anonymous' => 0,
'comment_subject_field' => '1',
'comment_preview' => '1',
'comment_form_location' => '0',
);
$content[fields] = array (
0 =>
array (
'label' => 'Video',
'field_name' => 'field_video',
'type' => 'video_upload',
'widget_type' => 'video_upload_widget',
'change' => 'Change basic information',
'weight' => '-3',
'file_extensions' => 'mov avi mp4 mpa mpe mpg mpeg qt wmv',
'file_path' => '',
'max_filesize_per_file' => '',
'max_filesize_per_node' => '',
'use_browser_upload_method' => false,
'auto_delete_rejected_videos' => 0,
'display' =>
array (
'default_width' => '480',
'default_height' => '295',
'small_width' => '240',
'small_height' => '148',
'thumb_width' => '128',
'thumb_height' => '72',
'related_videos' => 0,
'autoplay' => 0,
'fullscreen' => 1,
),
'default_title' => 'Untitled',
'default_title_sync' => '1',
'default_description' => 'http://www.mediabounds.com',
'default_description_sync' => '1',
'default_keywords' => 'mediabounds,dan,pfeiffer',
'default_keyword_sync' => '2',
'developer_tags' => '',
'video_category' => 'Entertainment',
'description' => '',
'group' => false,
'required' => 0,
'multiple' => '0',
'list_default' => '1',
'force_list_default' => '1',
'show_description' => '0',
'op' => 'Save field settings',
'module' => 'video_upload',
'widget_module' => 'video_upload',
'columns' =>
array (
'fid' =>
array (
'type' => 'int',
'not null' => false,
),
'list' =>
array (
'type' => 'int',
'size' => 'tiny',
'not null' => false,
),
'data' =>
array (
'type' => 'text',
'serialize' => true,
),
'id' =>
array (
'type' => 'varchar',
'length' => '32',
),
'status' =>
array (
'type' => 'int',
'default' => 3,
'sortable' => true,
),
'status_ts' =>
array (
'type' => 'int',
'length' => '11',
'sortable' => true,
'default' => '0',
),
),
'display_settings' =>
array (
'weight' => '-3',
'parent' => '',
'label' =>
array (
'format' => 'hidden',
),
'teaser' =>
array (
'format' => 'thumb_link',
'exclude' => 0,
),
'full' =>
array (
'format' => 'default',
'exclude' => 0,
),
4 =>
array (
'format' => 'default',
'exclude' => 0,
),
2 =>
array (
'format' => 'default',
'exclude' => 0,
),
3 =>
array (
'format' => 'default',
'exclude' => 0,
),
'token' =>
array (
'format' => 'default',
'exclude' => 0,
),
),
),
);
$content[extra] = array (
'title' => '-5',
'body_field' => '-2',
'menu' => '-4',
'attachments' => '-1',
);
Comment #7
mediabounds commentedAha!! I edited my cron.php file to force it to show php errors. When I ran it, I discovered that it was running out of memory. So I edited my htaccess file to allow 100M of memory (is that unsafe?) and tried to run cron and it ran successfully. Now, however, I have the following error:
Video Upload: error c8 <?xml version='1.0' encoding='UTF-8'?>yt:validation
invalid_charactermedia:group/media:description/text() 0 while attempting to upload a video.Comment #8
mediabounds commentedAnd FCKeditor was the culprit. It was trying to send html data to the description. Is there anyway to parse out the html it what is sent to youtube?
Comment #9
jhedstromI'm glad you got this working. Bumping up the memory limit isn't really dangerous, it just means on a really busy site you're more likely to have the server run out of memory if it's getting hammered by uploads.
Regarding FCKEditor, this has been the source of many support requests, so I'll look into a way to strip it's gibberish out of the data sent to youtube.
Comment #10
smooshy commentedsubscribe
Comment #11
j0rd commentedI'm getting the same XML error you've mentioned.
this happens when I run cron and it attempts to upload videos
<kode> tags are actually <code> tags
Comment #12
j0rd commentedAs a temp fix I'm simply disabling TinyMCE on the description when I submit video_upload nodes. That seems to resolve the issue for me.
I think you should simply strip the tags before you submit to YouTube
http://th.php.net/strip_tags
Comment #13
jhedstromAttached is a patch that should fix this. It will be committed to dev shortly.
Comment #14
jhedstromHere's a patch that adds an additional strip_tags call, to strip tags out in event of appending the node body to the youtube description.
Comment #15
jhedstromCommitted to 6.x dev version.